<?php


namespace app\common\service\rabbitMQ;

use app\common\enum\MainEnum;
use app\common\exception\LogicException;
use app\common\exception\ParameterFailedException;
use app\common\model\OrderModel;
use app\common\model\UserCouponModel;
use PhpAmqpLib\Exchange\AMQPExchangeType;
use PhpAmqpLib\Message\AMQPMessage;
use think\facade\Db;
use think\db\exception\DataNotFoundException;
use think\db\exception\DbException;
use think\db\exception\ModelNotFoundException;

interface RabbitMQBusinessInterface
{
    public static function instance(int $expire_timestamp);

    public static function publisher(array $data, int $expire_timestamp = 0);

    public static function consumer(array $body);
}